iconview testcase
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jun 2011 03:16:28 +0000 (23:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:05 +0000 (16:08 -0400)
tests/a11y/Makefile.am
tests/a11y/iconview.txt [new file with mode: 0644]
tests/a11y/iconview.ui [new file with mode: 0644]

index 898399911911209ddbd3bab0c7ea9a1ea6c75650..b430109b9a7fe2c692874d855af11433d84f407f 100644 (file)
@@ -63,4 +63,5 @@ EXTRA_DIST += \
        infobar.ui infobar.txt \
        calendar.ui calendar.txt \
        statusbar.ui statusbar.txt \
-       paned.ui paned.txt
+       paned.ui paned.txt \
+       iconview.ui iconview.txt
diff --git a/tests/a11y/iconview.txt b/tests/a11y/iconview.txt
new file mode 100644 (file)
index 0000000..1061995
--- /dev/null
@@ -0,0 +1,91 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gail
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  iv1
+    "layered pane"
+    parent: window1
+    index: 0
+    state: enabled focusable sensitive showing visible
+    toolkit: gail
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    <AtkSelection>
+    selection count: 0
+    One
+      "icon"
+      parent: iv1
+      index: 0
+      state: enabled focusable selectable sensitive showing visible
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: One
+      character count: 3
+      caret offset: 0
+      <AtkImage>
+      image size: 0 x 0
+      image description: (null)
+      <AtkAction>
+      action 0 name: activate
+      action 0 description: Activate item
+    Three
+      "icon"
+      parent: iv1
+      index: 1
+      state: enabled focusable selectable sensitive showing visible
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Three
+      character count: 5
+      caret offset: 0
+      <AtkImage>
+      image size: 0 x 0
+      image description: (null)
+      <AtkAction>
+      action 0 name: activate
+      action 0 description: Activate item
+    Five
+      "icon"
+      parent: iv1
+      index: 2
+      state: enabled focusable selectable sensitive showing visible
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Five
+      character count: 4
+      caret offset: 0
+      <AtkImage>
+      image size: 0 x 0
+      image description: (null)
+      <AtkAction>
+      action 0 name: activate
+      action 0 description: Activate item
+    Seven
+      "icon"
+      parent: iv1
+      index: 3
+      state: enabled focusable selectable sensitive showing visible
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Seven
+      character count: 5
+      caret offset: 0
+      <AtkImage>
+      image size: 0 x 0
+      image description: (null)
+      <AtkAction>
+      action 0 name: activate
+      action 0 description: Activate item
diff --git a/tests/a11y/iconview.ui b/tests/a11y/iconview.ui
new file mode 100644 (file)
index 0000000..ba5d89c
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkListStore" id="liststore1">
+    <columns>
+      <column type="gchararray"/>
+      <column type="gchararray"/>
+    </columns>
+    <data>
+      <row><col id="0">One</col><col id="1">Two</col></row>
+      <row><col id="0">Three</col><col id="1">Four</col></row>
+      <row><col id="0">Five</col><col id="1">Six</col></row>
+      <row><col id="0">Seven</col><col id="1">Eight</col></row>
+    </data>
+  </object>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkIconView" id="iv1">
+        <property name="visible">True</property>
+        <property name="model">liststore1</property>
+        <child>
+          <object class="GtkCellRendererText" id="renderer1">
+          </object>
+          <attributes>
+            <attribute name="text">0</attribute>
+          </attributes>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>